사이트 내 전체검색
background image 넣을때 html - background image 넣을때 반복
로빈아빠
https://cmd.kr/javascript/165 URL이 복사되었습니다.

본문

<style>
body {background-image: url(배경그림주소);
background-repeat: no-repeat; //배경그림이 반복되지 않게
background-attachment: fixed; //배경그림이 고정되게
background-position: right bottom;} //배경그림의 위치
table, td {background-color: transparent;}
</style>


background-repeat: no-repeat; //배경그림이 반복되지 않게, repaet 는 반복되게
background-attachment: fixed; //배경그림이 고정되게
background-position: right bottom;} //배경그림의 위치 오른쪽 아래쪽에 나오게

table, td {background-color: transparent;} //테이블이 있는 부분도 배경그림이 나오게

-------------
body 에 쓸때는

<body background="배경그림주소" style="background-repeat: no-repeat;">

이런식으로 style="background-repeat: no-repeat;" 를 넣으면 반복되지 않습니다.

 

댓글목록

등록된 댓글이 없습니다.

831 (17/17P)

Search

Copyright © Cmd 명령어 18.222.184.126